package reduce.fz.com.reduce.display;

import android.content.Context;
import android.support.v7.widget.Toolbar;
import android.view.LayoutInflater;
import android.view.View;

import java.util.ArrayList;
import java.util.List;

import reduce.fz.com.reduce.R;
import reduce.fz.com.reduce.custom.TabIndicator;

/**
 * Created by qingshengzheng on 15/9/8.
 */
public class ToolBarDisplay implements   IToolBarDisplay {
    private Context mContext;
    public ToolBarDisplay (Context context)
    {
        this.mContext=context;
    }

    @Override
    public View myTeamToolBar(Toolbar toolbar) {
        View view=LayoutInflater.from(mContext).inflate(R.layout.my_team_toolbar,toolbar,false);
        TabIndicator myteam = (TabIndicator) view.findViewById(R.id.myteam_tab);
        List<String> title = new ArrayList<String>();
        myteam.setTitleList(title);
        return view;
    }
}
